package com.intelligentcar.springboot.controller;

import com.intelligentcar.springboot.service.StaffServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class StaffController {
    @Autowired
    private StaffServer staffServerImpl;

    @RequestMapping("/addStaffData")
    @ResponseBody
    public int addStaffData(){
        return staffServerImpl.addStaffData();
    }
}
